<?php
	session_start();
	
	$table = array(
		'pic1' => '狮子',
		'pic2' => '妹子',
		'pic3' => '汉子'
	);
	
	$index = rand(1, 3);
	$value = $table['pic'.$index];
	$_SESSION['authcode'] = $value;
	$filename = dirname(__FILE__).'\\img\\pic'.$index.'.jpg';
	$contents = file_get_contents($filename);
	
	header('Content-Type: image/jpg');
	echo $contents;
	//end
	
?>